package com.trt.beibei.repository;

import com.trt.beibei.model.Banner;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @version 1.0
 * @author: trt
 * @description:
 * @create: 2021-08-08 19:43
 */
@Repository
public interface BannerRepository extends JpaRepository<Banner, Long> {

    Banner findOneById(Long id);

    Banner findOneByName(String name);

}